Special:Log and the logging table -- unified logging scariness!
[lhc/web/wiklou.git] / includes / SpecialMakesysop.php
index 0c1aa55..f6393ad 100644 (file)
@@ -194,11 +194,9 @@ class MakesysopForm {
                        $dbw->query($sql);
                        $wgMemc->delete( "$dbName:user:id:$id" );
                        
-                       $bureaucratLog = wfMsg( "bureaucratlog" );
-                       $action = wfMsg( "bureaucratlogentry", $this->mUser, implode( " ", $rightsNotation ) );
-                       
-                       $log = new LogPage( $bureaucratLog );
-                       $log->addEntry( $action, "" );
+                       $log = new LogPage( 'rights' );
+                       $log->addEntry( 'rights', Title::makeTitle( NS_USER, $this->mUser ),
+                               implode( " ", $rightsNotation ) );
                        
                        $this->showSuccess();
                }